/*
 * @Author: delin66
 * @Date: 2025-01-11 16:54:05
 * @LastEditors: delin66
 * @LastEditTime: 2025-04-29 14:35:57
 * @Descripttion: 
 */
import request from './request';

//退出众创空间表单提交
export function exitCreateSpaceForm(data:any) {
    return request({
      url: '/kjy/exitCreateSpaceForm',
      method: 'post',
      data: data,
    });
}

//添加科技园退租申请
export function exitApplicationForm(data: any) {
  return request({
    url: '/kjy/exitApplicationForm',
    method: 'post',
    data: data,
  });
}
// 获取/科技园退租申请详情
export function getexitApplicationForm(id:any){
  return request({
    url: `/kjy/exitApplicationForm/${id}`,
    method: 'get',
  });
}
//获取我的/科技园退租
export function getMyexitApplicationForm(){
  return request({
    url: '/kjy/exitApplicationForm/my',
    method: 'get',
  });
}

// 修改/科技园退租申请
export function editexitApplicationForm(query:any){
  return request({
    url: '/kjy/exitApplicationForm',
    method: 'put',
    data: query,
  });
}

// 删除科技园退租
export function delImmigrantApplication(id: string) {
  return request({
    url: `/kjy/migrationenterprise/${id}`,
    method: 'delete',
  });
}

// 获取/创客空间退租申请详情
export function getexitexitCreateSpaceForm(id:any){
  return request({
    url: `/kjy/exitCreateSpaceForm/${id}`,
    method: 'get',
  });
}
//获取我的创客空间退租
export function getMyexitCreateSpaceForm(){
  return request({
    url: '/kjy/exitCreateSpaceForm/my',
    method: 'get',
  });
}

// 修改创客空间退租申请
export function editexitCreateSpaceForm(query:any){
  return request({
    url: '/kjy/exitCreateSpaceForm',
    method: 'put',
    data: query,
  });
}

// 删除创客空间退租
export function delexitCreateSpaceForm(id: string) {
  return request({
    url: `/kjy/exitCreateSpaceForm/${id}`,
    method: 'delete',
  });
}
//下载承诺书
export function downloadCommitment() {
  return request({
    url: '/kjy/static/book.docx',
    method: 'get',
  })
}

//获取费用缴纳列表
export function getPaymentList() {
  return request({
    url: '/kjy/payment/listMy',
    method: 'get',
  });
}

//添加费用缴纳记录
export function addPayment(data: any) {
  return request({
    url: '/kjy/payment',
    method: 'post',
    data: data,
  });
}

//修改费用缴纳
export function updatePayment(data: any) {
  return request({
    url: '/kjy/payment',
    method: 'put',
    data: data,
  });
}

//删除费用缴纳记录
export function deletePayment(id: string) {
  return request({
    url: `/kjy/payment/${id}`,
    method: 'delete',
  });
}

